package com.aliyun.dingtalk.model;

import java.util.List;
import java.util.Map;

// 在model包下创建DeptWithUsers.java
public class DeptWithUsers {
    private Long deptId;
    private String name;
    private Long parentId;
    private Boolean autoAddUser;
    private Boolean createDeptGroup;
    private String ext;
    private List<String> useridList; // 部门下的用户ID列表
//    private List<Long> subDeptIdList;
    private List<DeptWithUsers> childDepts;
    private Integer userCount;
    private List<Map<String, Object>> userListWithDetails;

    public List<Map<String, Object>> getUserListWithDetails() {
        return userListWithDetails;
    }

    public void setUserListWithDetails(List<Map<String, Object>> userListWithDetails) {
        this.userListWithDetails = userListWithDetails;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    // getter和setter方法
    public Long getDeptId() { return deptId; }
    public void setDeptId(Long deptId) { this.deptId = deptId; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public Long getParentId() { return parentId; }
    public void setParentId(Long parentId) { this.parentId = parentId; }

    public Boolean getAutoAddUser() { return autoAddUser; }
    public void setAutoAddUser(Boolean autoAddUser) { this.autoAddUser = autoAddUser; }

    public Boolean getCreateDeptGroup() { return createDeptGroup; }
    public void setCreateDeptGroup(Boolean createDeptGroup) { this.createDeptGroup = createDeptGroup; }

    public String getExt() { return ext; }
    public void setExt(String ext) { this.ext = ext; }

    public List<String> getUseridList() { return useridList; }
    public void setUseridList(List<String> useridList) { this.useridList = useridList; }


//    public List<Long> getSubDeptIdList() {
//        return subDeptIdList;
//    }
//
//    public void setSubDeptIdList(List<Long> subDeptIdList) {
//        this.subDeptIdList = subDeptIdList;
//    }

    public List<DeptWithUsers> getChildDepts() {
        return childDepts;
    }

    public void setChildDepts(List<DeptWithUsers> childDepts) {
        this.childDepts = childDepts;
    }
}
